Skip to content

Commit 559deac

Browse files
drewvolzhawkrives
authored andcommitted
load local faqs on development (#619)
* load local faqs on development * load local faqs on error
1 parent 15c626a commit 559deac

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

views/faqs/index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,15 @@ export class FaqView extends React.Component {
3232
let blob: {text: string} = await fetchJson(this.url)
3333
html = blob.text
3434
} catch (err) {
35+
html = faqs
3536
tracker.trackException(err.message)
3637
console.warn(err.message)
3738
}
39+
40+
if (__DEV__) {
41+
html = faqs
42+
}
43+
3844
this.setState({html: html})
3945
}
4046

0 commit comments

Comments
 (0)