Skip to content

Commit e897820

Browse files
acasazzamalessani
authored andcommitted
fix: Set shipping step when a discount is removed
1 parent f9d01b6 commit e897820

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

components/data/AppProvider/index.tsx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -179,11 +179,12 @@ export const AppProvider: React.FC<AppProviderProps> = ({
179179
state.isShipmentRequired,
180180
state.customerAddresses
181181
)
182-
183-
dispatch({
184-
type: ActionType.CHANGE_COUPON_OR_GIFTCARD,
185-
payload: { order: currentOrder, others },
186-
})
182+
setTimeout(() => {
183+
dispatch({
184+
type: ActionType.CHANGE_COUPON_OR_GIFTCARD,
185+
payload: { order: currentOrder, others },
186+
})
187+
}, 100)
187188
}
188189
}
189190

0 commit comments

Comments
 (0)