From dd008f73d2a90d400600e6fcf20355e296721709 Mon Sep 17 00:00:00 2001 From: Oliver Eyton-Williams Date: Wed, 16 Oct 2019 15:15:50 +0200 Subject: [PATCH] fix: make info tab default on mobile challenges (#37280) --- client/src/templates/Challenges/classic/MobileLayout.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/src/templates/Challenges/classic/MobileLayout.js b/client/src/templates/Challenges/classic/MobileLayout.js index 94769fa0c1..e64bd7d5e0 100644 --- a/client/src/templates/Challenges/classic/MobileLayout.js +++ b/client/src/templates/Challenges/classic/MobileLayout.js @@ -33,6 +33,9 @@ const propTypes = { }; class MobileLayout extends Component { + componentDidMount() { + if (this.props.currentTab !== 1) this.props.moveToTab(1); + } render() { const { currentTab,