Skip to content

Commit

Permalink
feat: clear data after submit
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianJiang2021 committed Jul 21, 2022
1 parent fcf6a7b commit b21101c
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion apps/storefront/src/pages/registered/Registered.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,22 @@ export default function Registered(props: RegisteredProps) {
const isHasFrontPage = window?.history?.length > 2
if (dispatch) {
dispatch({
type: 'finishInfo',
type: 'all',
payload: {
accountType: '',
isLoading: false,
storeName: '',
submitSuccess: false,
contactInformation: [],
additionalInformation: [],
bcContactInformationFields: [],
companyExtraFields: [],
companyInformation: [],
companyAttachment: [],
addressBasicFields: [],
addressExtraFields: [],
countryList: [],
passwordInformation: [],
},
})
}
Expand Down

0 comments on commit b21101c

Please sign in to comment.