Skip to content

Commit

Permalink
Merge pull request #353 from P4-Games/develop
Browse files Browse the repository at this point in the history
Deploy 20240415
  • Loading branch information
dappsar authored Apr 15, 2024
2 parents 682f84a + 0ed348b commit e9f901b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ export const NETWORKS = {
ChainRpcUrl: 'https://polygon-mainnet.infura.io',
chainExplorerUrl: 'https://polygonscan.com',
chainOpenSeaBaseUrl: 'https://opensea.io/assets/matic',
chainNftUrl: 'https://polygonscan.com/',
chainNftUrl: 'https://polygonscan.com/token/0x0a703481a0c67b9a4ee0ee49945f193f117f7505',
chainNodeProviderUrl: NodeProviderUrlPolygon // visible ONLY in server side code! (in cliente side will be undefined)
},
contracts: {
Expand Down
7 changes: 6 additions & 1 deletion src/context/LayoutContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,12 @@ function LayoutProvider({ children }) {

const getCurrentPage = useCallback(() => {
if (!bookRef || !bookRef.current) return 0
const currentPage = bookRef.current.pageFlip().getCurrentPageIndex()
let currentPage = 0
try {
currentPage = bookRef.current.pageFlip().getCurrentPageIndex()
} catch (e) {
console.error('Error when try to set crrent page', e)
}
return currentPage
}, [])

Expand Down

0 comments on commit e9f901b

Please sign in to comment.