From 1083ff817656ec7617caf65fb4105156e1091f28 Mon Sep 17 00:00:00 2001 From: Bastian Krol Date: Mon, 5 Feb 2024 12:22:02 +0100 Subject: [PATCH] [frontend] fix typo in ShippingGateway --- src/frontend/gateways/rpc/Shipping.gateway.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontend/gateways/rpc/Shipping.gateway.ts b/src/frontend/gateways/rpc/Shipping.gateway.ts index 922eab2598..3ebaedd64c 100644 --- a/src/frontend/gateways/rpc/Shipping.gateway.ts +++ b/src/frontend/gateways/rpc/Shipping.gateway.ts @@ -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((resolve, reject) => client.getQuote({ items: itemList, address: address }, (error, response) => @@ -18,4 +18,4 @@ const AdGateway = () => ({ }, }); -export default AdGateway(); +export default ShippingGateway();