X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=resources%2Fjs%2Fcomponents%2Frounds%2FSeedCode.js;fp=resources%2Fjs%2Fcomponents%2Frounds%2FSeedCode.js;h=2f7427979e335ff2e826474373347fe80616b0c5;hb=9160186db0ea1b0da0edfec49cb3d99ead213bc4;hp=1539c18009718e7a480b0bda9b7e394678891e77;hpb=1e66c7e499436c85204e89ea5167178b5b6e74d3;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;