Ignore:
Timestamp:
07/19/22 19:38:51 (2 years ago)
Author:
anastasovv <simon@…>
Branches:
main
Children:
41d3f60
Parents:
faff334
Message:

Added authentication with google

File:
1 edited

Legend:

Unmodified
Added
Removed
  • components/blackjack/BlackjackHeader.jsx

    rfaff334 r22367db  
     1/* eslint-disable @next/next/no-html-link-for-pages */
    12import React from 'react'
    23
     
    6263                            dispatch(setBlackjackGame(newRes.data?.blackjackGame))
    6364
    64                             if (newRes.data?.blackjackGame?.credits !== playerState.player.credits && parseInt(newRes.data?.blackjackGame?.credits) > 0) {
     65                            if (newRes.data?.blackjackGame?.credits !== playerState.player.credits && parseInt(newRes.data?.blackjackGame?.credits) >= 0) {
    6566                                dispatch(setPlayer({
    6667                                    ...playerState.player,
     
    138139    return (
    139140        <header className="header">
    140             <Link href="/" passHref>
     141            <a href="/">
    141142                <h2>
    142143                    <AiOutlineArrowLeft />
    143144                </h2>
    144             </Link>
     145            </a>
    145146            <nav>
    146147                <ul>
Note: See TracChangeset for help on using the changeset viewer.