Change onboarding prompt to follow suggestions carousel in web UI (#28878)

This commit is contained in:
Eugen Rochko authored and GitHub committed 2024-02-01 13:37:04 +00:00
1 parent 7316a08380
commit 9cdc60ecc6
17 files changed
+507 -138

No files matched your search

@@ -54,12 +54,5 @@ export const dismissSuggestion = accountId => (dispatch, getState) => {
id: accountId,
});
api(getState).delete(`/api/v1/suggestions/${accountId}`).then(() => {
dispatch(fetchSuggestionsRequest());
api(getState).get('/api/v2/suggestions').then(response => {
dispatch(importFetchedAccounts(response.data.map(x => x.account)));
dispatch(fetchSuggestionsSuccess(response.data));
}).catch(error => dispatch(fetchSuggestionsFail(error)));
}).catch(() => {});
api(getState).delete(`/api/v1/suggestions/${accountId}`).catch(() => {});
};