Commit 88263595 by HaOuiha

swap table

parent 14c40379
......@@ -15,9 +15,9 @@ class App extends Component {
componentDidMount = () => {
app.auth().onAuthStateChanged(async user => {
if (user) {
this.props.fireStoreGetConfig && (await this.props.fireStoreGetConfig());
this.props.fireStoreGetCurrentUser && (await this.props.fireStoreGetCurrentUser());
this.props.getAllDevicesInfo && (await this.props.getAllDevicesInfo());
await this.props.fireStoreGetConfig();
await this.props.fireStoreGetCurrentUser();
await this.props.getAllDevicesInfo();
this.setState({
authenticated: true,
loading: false,
......
......@@ -220,7 +220,7 @@ class Home extends Component {
data[5].length > 0 && data[5][data[5].length - i - 1] ? data[5][data[5].length - i - 1][1] : '',
timestamp: data[5].length > 0 && moment(data[1][data[1].length - i - 1][0]).format('D/M/YY HH:mm'),
};
table.push(v);
table.unshift(v);
}
return table;
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment