diff --git a/.github/workflows/aws-cdk.yml b/.github/workflows/aws-cdk.yml index 46ddec4..35700a1 100644 --- a/.github/workflows/aws-cdk.yml +++ b/.github/workflows/aws-cdk.yml @@ -1,6 +1,9 @@ name: AWS CDK Deploy -on: push +on: + push: + branches: + - main permissions: id-token: write # This is required for requesting the JWT diff --git a/.github/workflows/client-pr.yml b/.github/workflows/client-pr.yml index dcde164..03624d7 100644 --- a/.github/workflows/client-pr.yml +++ b/.github/workflows/client-pr.yml @@ -1,7 +1,7 @@ name: Client PR Review on: - pull-request: + pull_request: paths: - "client/**" diff --git a/client/src/lib/molecules/AddProductForm.tsx b/client/src/lib/molecules/AddProductForm.tsx index c5bcd8c..d26c122 100644 --- a/client/src/lib/molecules/AddProductForm.tsx +++ b/client/src/lib/molecules/AddProductForm.tsx @@ -7,10 +7,10 @@ export type AddProduct = { image: FileList; asset: FileList; /** - * Nostr private key - * - should start with nsec + * Nostr public key + * - should start with npub */ - nsec: string; + npub: string; }; export default function AddProductForm({ @@ -175,27 +175,27 @@ export default function AddProductForm({
-

+ {/*

Prove that you are the seller of this product. -

+

*/}
diff --git a/client/src/routes/CreateProduct.tsx b/client/src/routes/CreateProduct.tsx index 092a045..4405204 100644 --- a/client/src/routes/CreateProduct.tsx +++ b/client/src/routes/CreateProduct.tsx @@ -25,7 +25,6 @@ export const CreateProduct = () => { const onSubmit: SubmitHandler = async (event) => { try { setIsLoading(true); - const npub = nsecToNpub(event.nsec); const { url, key } = await getAssetUploadURL(); @@ -42,7 +41,7 @@ export const CreateProduct = () => { title: event.title, description: event.description, assetKey: key, - npub, + npub: event.npub, }, images: [ {