Skip to content

Commit

Permalink
Do not set default DAPP title if it's already set (#93)
Browse files Browse the repository at this point in the history
* Do not set default DAPP title if it's already set

* Fixing wrong step name
  • Loading branch information
liarco authored Mar 8, 2022
1 parent fa117a1 commit 0c723c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dapp-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,5 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Compile smart contract
- name: Build DAPP
run: cd ./minting-dapp && yarn build
4 changes: 3 additions & 1 deletion minting-dapp/src/scripts/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ import ReactDOM from 'react-dom';
import Dapp from './react/Dapp';
import CollectionConfig from '../../../smart-contract/config/CollectionConfig';

document.title = CollectionConfig.tokenName;
if (document.title === '') {
document.title = CollectionConfig.tokenName;
}

document.addEventListener('DOMContentLoaded', async () => {
ReactDOM.render(<Dapp />, document.getElementById('minting-dapp'));
Expand Down

0 comments on commit 0c723c1

Please sign in to comment.