From 139b6126bbf32ca9de8d28c81ad63539a0132474 Mon Sep 17 00:00:00 2001 From: smb2268 Date: Tue, 6 Aug 2024 14:48:57 -0400 Subject: [PATCH] Match Mix disabled state with snackbar appearance --- .../QuickTransferAdvancedSettings/index.tsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/app/src/organisms/QuickTransferFlow/QuickTransferAdvancedSettings/index.tsx b/app/src/organisms/QuickTransferFlow/QuickTransferAdvancedSettings/index.tsx index 7ec21c7c8575..5ec56c7a7343 100644 --- a/app/src/organisms/QuickTransferFlow/QuickTransferAdvancedSettings/index.tsx +++ b/app/src/organisms/QuickTransferFlow/QuickTransferAdvancedSettings/index.tsx @@ -160,7 +160,10 @@ export function QuickTransferAdvancedSettings( state.transferType === 'transfer' || state.transferType === 'distribute', onClick: () => { - if (state.transferType === 'transfer') { + if ( + state.transferType === 'transfer' || + state.transferType === 'distribute' + ) { setSelectedSetting('aspirate_mix') } else { makeSnackbar(t('advanced_setting_disabled') as string) @@ -240,7 +243,10 @@ export function QuickTransferAdvancedSettings( state.transferType === 'transfer' || state.transferType === 'consolidate', onClick: () => { - if (state.transferType === 'transfer') { + if ( + state.transferType === 'transfer' || + state.transferType === 'consolidate' + ) { setSelectedSetting('dispense_mix') } else { makeSnackbar(t('advanced_setting_disabled') as string)