mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-22 12:51:42 +03:00
hancled if the date not arrive to application
This commit is contained in:
parent
61bd0280a2
commit
717a011e22
@ -322,7 +322,23 @@ export const uploadImage = file => {
|
||||
// });
|
||||
// });
|
||||
|
||||
export const getNodes = () => serverList.get().then(resp => resp.data.nodes);
|
||||
export const getNodes = () =>
|
||||
serverList
|
||||
.get()
|
||||
.then(
|
||||
resp =>
|
||||
resp.data.nodes || [
|
||||
'https://rpc.esteem.app',
|
||||
'https://api.steemit.com',
|
||||
'https://steemd.previx.io',
|
||||
'https://anyx.io',
|
||||
'https://rpc.buildteam.io',
|
||||
'https://rpc.steemviz.com',
|
||||
'https://api.steem.house',
|
||||
'https://steemd.pevo.science',
|
||||
'https://steemd.minnowsupportproject.org',
|
||||
],
|
||||
);
|
||||
|
||||
export const getSCAccessToken = code =>
|
||||
new Promise(resolve => {
|
||||
|
@ -73,7 +73,21 @@ class SettingsContainer extends Component {
|
||||
.then(resp => {
|
||||
this.setState({ serverList: resp });
|
||||
})
|
||||
.catch(() => {});
|
||||
.catch(() =>
|
||||
this.setState({
|
||||
serverList: [
|
||||
'https://rpc.esteem.app',
|
||||
'https://api.steemit.com',
|
||||
'https://steemd.previx.io',
|
||||
'https://anyx.io',
|
||||
'https://rpc.buildteam.io',
|
||||
'https://rpc.steemviz.com',
|
||||
'https://api.steem.house',
|
||||
'https://steemd.pevo.science',
|
||||
'https://steemd.minnowsupportproject.org',
|
||||
],
|
||||
}),
|
||||
);
|
||||
}
|
||||
|
||||
// Component Functions
|
||||
|
Loading…
Reference in New Issue
Block a user