Skip to content

Commit

Permalink
add address to IProductCheckout (#641)
Browse files Browse the repository at this point in the history
Signed-off-by: Pierre Tessier <pierre@pierretessier.com>

Signed-off-by: Pierre Tessier <pierre@pierretessier.com>
Co-authored-by: Juliano Costa <julianocosta89@outlook.com>
  • Loading branch information
puckpuck and julianocosta89 authored Dec 19, 2022
1 parent df05ae7 commit ebb2ab1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/frontend/pages/cart/checkout/[orderId]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const Checkout: NextPage = () => {
<CheckoutItem
key={checkoutItem.item.productId}
checkoutItem={checkoutItem}
address={shippingAddress!}
address={shippingAddress}
/>
))}
</S.ItemList>
Expand Down
3 changes: 2 additions & 1 deletion src/frontend/types/Cart.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Cart, OrderItem, OrderResult, Product } from '../protos/demo';
import {Address, Cart, OrderItem, OrderResult, Product} from '../protos/demo';

export interface IProductCartItem {
productId: string;
Expand All @@ -12,6 +12,7 @@ export interface IProductCheckoutItem extends OrderItem {

export interface IProductCheckout extends OrderResult {
items: IProductCheckoutItem[];
shippingAddress: Address;
}

export interface IProductCart extends Cart {
Expand Down

0 comments on commit ebb2ab1

Please sign in to comment.