Skip to content

Commit

Permalink
[frontend] fix typo in ShippingGateway
Browse files Browse the repository at this point in the history
  • Loading branch information
basti1302 committed Feb 28, 2024
1 parent 71f0e96 commit 927f7e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/frontend/gateways/rpc/Shipping.gateway.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const { SHIPPING_SERVICE_ADDR = '' } = process.env;

const client = new ShippingServiceClient(SHIPPING_SERVICE_ADDR, ChannelCredentials.createInsecure());

const AdGateway = () => ({
const ShippingGateway = () => ({
getShippingCost(itemList: CartItem[], address: Address) {
return new Promise<GetQuoteResponse>((resolve, reject) =>
client.getQuote({ items: itemList, address: address }, (error, response) =>
Expand All @@ -18,4 +18,4 @@ const AdGateway = () => ({
},
});

export default AdGateway();
export default ShippingGateway();

0 comments on commit 927f7e0

Please sign in to comment.