fix(donate): handle missing stripe keys (#37847)
* fix: gracefully handle missing stripe keys * fix: remove state updates from render (donate)
This commit is contained in:
committed by
mrugesh
parent
81bb677def
commit
c660b389a8
@ -30,8 +30,14 @@ const locations = {
|
||||
|
||||
module.exports = Object.assign(locations, {
|
||||
locale,
|
||||
stripePublicKey,
|
||||
servicebotId,
|
||||
stripePublicKey:
|
||||
!stripePublicKey || stripePublicKey === 'pk_from_stripe_dashboard'
|
||||
? null
|
||||
: stripePublicKey,
|
||||
servicebotId:
|
||||
!servicebotId || servicebotId === 'servicebot_id_from_servicebot_dashboard'
|
||||
? null
|
||||
: servicebotId,
|
||||
algoliaAppId:
|
||||
!algoliaAppId || algoliaAppId === 'Algolia app id from dashboard'
|
||||
? null
|
||||
|
Reference in New Issue
Block a user