Skip to content

Commit

Permalink
Refactor: add category type undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
swgvenghy committed Aug 2, 2024
1 parent 618e796 commit 0e2683a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/post-question.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { server_axiosInstance } from '../utils/axios';

export async function postQuestion(category: string, type: string, content: string): Promise<any> {
export async function postQuestion(category: string | undefined, type: string, content: string): Promise<any> {
const data = {
type,
category,
Expand Down

0 comments on commit 0e2683a

Please sign in to comment.