Skip to content

Commit

Permalink
Improve commodity data loading behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
iaincollins committed Sep 11, 2024
1 parent 23d05f1 commit b50d922
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ardent-www",
"version": "0.45.5",
"version": "0.45.6",
"description": "Ardent Industry",
"main": "index.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions pages/commodity/[commodity-name]/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export default () => {
}, [])

return (
<Layout loading={commodity === undefined || imports === undefined || updating} loadingText={'Loading trade data…'}>
<Layout loading={!commodity} loadingText={'Loading trade data…'}>
<Head>
<link rel='canonical' href={`https://ardent-industry.com/system/${commodity?.symbol}/${tabs[tabIndex]}`} />
</Head>
Expand Down Expand Up @@ -221,7 +221,7 @@ export default () => {
Rare goods are only available in limited quantities from exclusive locations but can be sold almost anywhere.
</p>
</>}
{imports &&
{
<Tabs
selectedIndex={tabIndex}
onSelect={
Expand Down

0 comments on commit b50d922

Please sign in to comment.