mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-30 00:52:42 +03:00
hancled if the date not arrive to application
This commit is contained in:
parent
0ca17779e0
commit
a8d5567b4f
@ -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