mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 05:40:31 +00:00
feat: reset plaid lanch link token
This commit is contained in:
@@ -13,8 +13,11 @@ export const PlaidSlice = createSlice({
|
||||
setPlaidId: (state: StorePlaidState, action: PayloadAction<string>) => {
|
||||
state.plaidToken = action.payload;
|
||||
},
|
||||
resetPlaidId: (state: StorePlaidState) => {
|
||||
state.plaidToken = '';
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
export const { setPlaidId } = PlaidSlice.actions;
|
||||
export const getPlaidToken = (state: any) => state.plaid.plaidToken;
|
||||
export const { setPlaidId, resetPlaidId } = PlaidSlice.actions;
|
||||
export const getPlaidToken = (state: any) => state.plaid.plaidToken;
|
||||
Reference in New Issue
Block a user