Skip to content

Commit

Permalink
Remove FIO from side menu if disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
paullinator committed Nov 11, 2024
1 parent 7b9f766 commit c48f22b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/components/themed/SideMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,14 @@ export function SideMenu(props: DrawerContentComponentProps) {
}
]

if (ENV.FIO_INIT == null || ENV.FIO_INIT === false) {
// Remove FIO rows
let index = rowDatas.findIndex(row => row.title === lstrings.drawer_fio_names)
if (index >= 0) rowDatas.splice(index, 1)
index = rowDatas.findIndex(row => row.title === lstrings.drawer_fio_requests)
if (index >= 0) rowDatas.splice(index, 1)
}

if (ENV.ENABLE_VISA_PROGRAM && IONIA_SUPPORTED_FIATS.includes(defaultFiat)) {
rowDatas.unshift({
pressHandler: () => {
Expand Down

0 comments on commit c48f22b

Please sign in to comment.