Skip to content

Commit

Permalink
Match Mix disabled state with snackbar appearance
Browse files Browse the repository at this point in the history
  • Loading branch information
smb2268 committed Aug 6, 2024
1 parent 5ae64d0 commit 139b612
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 139b612

Please sign in to comment.