Skip to content

Commit 5c43d6c

Browse files
authored
hiding setup locales msg (#1691)
1 parent bfc067e commit 5c43d6c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/dashboard/Push/PushNew.react.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -596,14 +596,15 @@ class PushNew extends DashboardView {
596596
key={i} />);
597597
})}
598598
</div>
599-
{ !this.state.loadingLocale && this.state.availableLocales.length === 0 ?
599+
{ !this.state.loadingLocale && this.state.locales.length === 0 ?
600600
<a
601601
href="https://github.com/parse-community/parse-dashboard#configuring-localized-push-notifications"
602602
style={{ color: '#169CEE'}}
603603
target='_blank'
604604
>
605605
Please follow this guide to setup the push locales feature
606606
</a> :
607+
!this.state.loadingLocale && this.state.availableLocales.length === 0 ? null :
607608
<Button
608609
progress={this.state.loadingLocale}
609610
disabled={this.state.availableLocales.length === 0}

0 commit comments

Comments
 (0)