Skip to content

Commit

Permalink
Fix bundle detail in modal
Browse files Browse the repository at this point in the history
  • Loading branch information
junkycoder committed Oct 28, 2019
1 parent 9fa0241 commit bfda9a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/BundleDetail.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
// import cn from "classnames";
import { createBundleDetail } from '../library/bundle';

export default function BundleDetail({ bundle }) {
export default function BundleDetail({ bundle = {} }) {
const detail = createBundleDetail(bundle);
return (
<div className="bundle-detail">
Expand Down
4 changes: 2 additions & 2 deletions src/modals/Unbundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import IconCheck from '../assets/icon-check.svg';
import IconPuzzle from '../assets/icon-puzzle.svg';
import BundleDetail from '../components/BundleDetail';

export default function UnbundleModal({ dispatch }) {
export default function UnbundleModal({ dispatch, configuratorBundleUsed }) {
const [confirm, pending, success] = [true, false, false];

const closeModal = () => {
Expand All @@ -30,7 +30,7 @@ export default function UnbundleModal({ dispatch }) {
</div>
<Headline modal>Waiting for confirmation</Headline>
<p className="bundle-modal__description">Not yet implemented.</p>
<BundleDetail />
<BundleDetail bundle={configuratorBundleUsed} />
<div className="bundle-modal__bottom">
<Button onClick={closeModal} simple secondary>
Cancel
Expand Down

0 comments on commit bfda9a9

Please sign in to comment.