X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=resources%2Fjs%2Fcomponents%2Frounds%2FSeedCode.js;h=2f7427979e335ff2e826474373347fe80616b0c5;hb=31131fc56ecc52ba5ce8aa9854755b22620a7139;hp=1539c18009718e7a480b0bda9b7e394678891e77;hpb=2110d91bc5016fd78aec02578b09506b6d67f45e;p=alttp.git diff --git a/resources/js/components/rounds/SeedCode.js b/resources/js/components/rounds/SeedCode.js index 1539c18..2f74279 100644 --- a/resources/js/components/rounds/SeedCode.js +++ b/resources/js/components/rounds/SeedCode.js @@ -3,15 +3,17 @@ import React from 'react'; import ZeldaIcon from '../common/ZeldaIcon'; -const SeedCode = ({ code }) => - - {code.map((symbol, index) => - +const SeedCode = ({ code, game }) => + + {code.map(game === 'smr' + ? (symbol, index) => {symbol} + : (symbol, index) => )} ; SeedCode.propTypes = { code: PropTypes.arrayOf(PropTypes.string), + game: PropTypes.string, }; export default SeedCode;