Advertisement
Guest User

Untitled

a guest
Mar 30th, 2020
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. st {
  2. data: { configuration: partnerConfiguration }
  3. } = partnerConfigResponse
  4.  
  5. if (partnerSlug === genericShopPartnerKey) {
  6. modifyConfig(partnerConfiguration, getGenericPartnerConfig(host))
  7. } else {
  8. modifyConfig(partnerConfiguration)
  9. }
  10.  
  11. const root: HTMLElement = document.documentElement
  12. for (const key of Object.keys(partnerConfiguration.theme)) {
  13. root.style.setProperty(key, partnerConfiguration.theme[key])
  14. }
  15.  
  16. const errorsResponse: any = yield call(getErrorLabels)
  17.  
  18. yield put(succeedPartnerConfigLoading(partnerConfiguration))
  19. yield put(succeedErrorLabelsLoading(errorsResponse.fields))
  20. } catch (error) {
  21. yield put(failPartnerConfigLoading(error))
  22. yield history.push(StaticRoute.failUrl)
  23. }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement