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 27, 2024
1 parent 0a1ad08 commit 1083ff8
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 1083ff8

Please sign in to comment.